package zhoug.zui.task;

import android.graphics.drawable.Drawable;

import java.io.Serializable;
import java.util.List;

/**
 * 任务流程/进度
 * @Author 35574
 * @Date 2021/2/26
 * @Description
 */
public class TaskFlow implements Serializable {
    /**
     * 流程状态
     */
    private int status;
    /**
     * 时间
     */
    private String time;

    /**
     * 名称
     */
    private String name;
    /**
     * 执行人
     */
    private String executor;

    /**
     * 完成状态
     */
    private boolean complete;

    /**
     * 进度 eg:(1) ,(1/3)
     */
    private String progress;

    private Drawable icon;

    private List<TaskFlow> child;

    public TaskFlow() {
    }

    public TaskFlow(String time, String name, String executor, boolean complete) {
        this.time = time;
        this.name = name;
        this.executor = executor;
        this.complete = complete;
    }


    public TaskFlow(String name, String executor, String progress) {
        this.name = name;
        this.executor = executor;
        this.progress = progress;
    }

    public TaskFlow(int status, String time, String name, String executor, boolean complete) {
        this.status = status;
        this.time = time;
        this.name = name;
        this.executor = executor;
        this.complete = complete;
    }

    public TaskFlow(int status, String time, String name, String executor, boolean complete, Drawable icon) {
        this.status = status;
        this.time = time;
        this.name = name;
        this.executor = executor;
        this.complete = complete;
        this.icon = icon;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Drawable getIcon() {
        return icon;
    }

    public void setIcon(Drawable icon) {
        this.icon = icon;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getExecutor() {
        return executor;
    }

    public void setExecutor(String executor) {
        this.executor = executor;
    }

    public boolean isComplete() {
        return complete;
    }

    public void setComplete(boolean complete) {
        this.complete = complete;
    }

    public List<TaskFlow> getChild() {
        return child;
    }

    public void setChild(List<TaskFlow> child) {
        this.child = child;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }



    @Override
    public String toString() {
        return "TaskFlow{" +
                "time='" + time + '\'' +
                ", name='" + name + '\'' +
                ", executor='" + executor + '\'' +
                ", complete=" + complete +
                ", progress='" + progress + '\'' +
                ", child=" + child +
                '}';
    }
}
